package org.wangle.seckill.mq.ack;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.RabbitTemplate;


@Slf4j
public class ReturnCallBackHandler implements RabbitTemplate.ReturnCallback {

    @Override
    public void returnedMessage(Message message, int i, String s, String s1, String s2) {
        log.info("消息发送-消息发送队列失败：({})",message.toString());
        message.getBody();
    }
}
